import request from '@/utils/request'
// 得到新的版本值
export function getNewVersion(isAfter,version) {
  return request({
    url: `/system/probeChangeRequest/getNewVersion/${isAfter}/${version}`,
    method: 'get'
  })
}
// 查询版本
export function listProbeChangeRequest(query) {
  return request({
    url: '/system/probeChangeRequest/list',
    method: 'get',
    params: query
  })
}


// 查询版本详细情况
export function getProbeChangeRequest(id) {
  return request({
    url: '/system/probeChangeRequest/' + id,
    method: 'get'
  })
}
// 新增版本变更
export function addProbeChangeRequest(data){
  return request({
    url: '/system/probeChangeRequest',
    method: "post",
    data
  })
}

// 版本更新
export function exportProbeChangeRequest(data) {
  return request({
    url: '/system/probeChangeRequest/export',
    method: 'post',
    data: data
  })
}


// 插入探针变更版本需求
export function updateVersionProbeChangeRequest(data) {
  return request({
    url: '/system/probeChangeRequest/updateVersion',
    method: 'post',
    data: data
  })
}

// 删除探针变更版本需求
export function delProbeChangeRequest(id) {
  return request({
    url: '/system/probeChangeRequest/' + id,
    method: 'delete'
  })
}
